package com.lostandfound.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "WDZLOG")
public class MyLogger implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer loggerId;//日志ID
	private String runnerId;//操作者ID
	private String runnerName;//操作者账号
	private String runClass;//运行的类
	private String runMothod;//运行的方法
	private String runTime;//运行时间
	private String logLevel;//日志级别
	private String logMsg;//日志信息
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) 
    @Column(name = "WDZLOGID", unique = true, nullable = false)
	public Integer getLoggerId() {
		return loggerId;
	}
	public void setLoggerId(Integer loggerId) {
		this.loggerId = loggerId;
	}
	
	@Column(name = "LogName")
	public String getRunnerId() {
		return runnerId;
	}
	public void setRunnerId(String runnerId) {
		this.runnerId = runnerId;
	}
	
	@Column(name = "UserName")
	public String getRunnerName() {
		return runnerName;
	}
	public void setRunnerName(String runnerName) {
		this.runnerName = runnerName;
	}
	
	@Column(name = "Class")
	public String getRunClass() {
		return runClass;
	}
	public void setRunClass(String runClass) {
		this.runClass = runClass;
	}
	
	@Column(name = "Mothod")
	public String getRunMothod() {
		return runMothod;
	}
	public void setRunMothod(String runMothod) {
		this.runMothod = runMothod;
	}
	
	@Column(name = "CreateTime")
	public String getRunTime() {
		return runTime;
	}
	public void setRunTime(String runTime) {
		this.runTime = runTime;
	}
	
	@Column(name = "LogLevel",length=20)
	public String getLogLevel() {
		return logLevel;
	}
	public void setLogLevel(String logLevel) {
		this.logLevel = logLevel;
	}
	
	@Column(name = "MSG")
	public String getLogMsg() {
		return logMsg;
	}
	public void setLogMsg(String logMsg) {
		this.logMsg = logMsg;
	}

}
